﻿using System.Web;

namespace TeachingAffairsManagementSystem
{
    public static class WebMessageBox
    {
        public static void Show(string message)
        {
            HttpContext.Current.Response.Write("<script language='javascript' type='text/javascript'>alert('" + message + "')</script>");
        }

        public static void Show(string message, string url)
        {
            HttpContext.Current.Response.Write("<script language='javascript' type='text/javascript'>alert('" + message + "');location.href='" + url + "'</script>");
        }
    }
}